package CoreNRMSystem;

/**
 * Generated from IDL union "PushGreSwitchType".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 2013-5-20 22:07:19
 */

public final class PushGreSwitchType
	implements org.omg.CORBA.portable.IDLEntity
{
	private CoreNRMSystem.PushSwitchType discriminator;
	private boolean pushGreSwitch;

	public PushGreSwitchType ()
	{
	}

	public CoreNRMSystem.PushSwitchType discriminator ()
	{
		return discriminator;
	}

	public boolean pushGreSwitch ()
	{
		if (discriminator != CoreNRMSystem.PushSwitchType.Support)
			throw new org.omg.CORBA.BAD_OPERATION();
		return pushGreSwitch;
	}

	public void pushGreSwitch (boolean _x)
	{
		discriminator = CoreNRMSystem.PushSwitchType.Support;
		pushGreSwitch = _x;
	}

	public void __default ()
	{
		discriminator = CoreNRMSystem.PushSwitchType.UnSupport;
	}
	public void __default (CoreNRMSystem.PushSwitchType _discriminator)
	{
		discriminator = _discriminator;
	}
}
